﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using AnesSystem.Models;
using System.Collections.ObjectModel;
using Common;
using System.Windows.Controls.Primitives;

namespace AnesSystem.Controls
{
    /// <summary>
    /// CustomDrugsCmbCtrl.xaml 的交互逻辑
    /// </summary>
    public partial class CustomDrugsCmbCtrl : BaseDropDownCtrl
    {

        #region Variables

        #endregion

        #region Constructor

        public CustomDrugsCmbCtrl()
        {
            InitializeComponent();
            List<CommonComboboxItemModel> list = new List<CommonComboboxItemModel>();
            foreach (var item in DataManager.Instance.ConfigDrugsModelList.Where(O => O.Deleted == false).ToList())
            {
                list.Add(new CommonComboboxItemModel() { Behind = item.Code, Display = item.Name });
            }
            _cmb.ItemsSource = list;
            _cmb.TextAlignment = TextAlignment.Left;
        }

        #endregion

        #region Properties

        #endregion

        #region 依赖属性

        #endregion

        #region Event

        #endregion

        #region Private Methods


        #endregion

        #region Public/Protected Methods

        #endregion

        #region EventHandlers

        #endregion
    }
}
